{include file=header.html}
<div class="main">
  {include file="header.common.html"}
  <div class="layerbox_kuan">
  <!--收货人信息-->
  <a href="index.php?app=my_address&act=add{if $smarty.get.for_cart}&for_cart={$smarty.get.for_cart}{/if}" style="line-height:30px;color:#00F; display:block">新增收货地址+</a>
  <!--{foreach from=$addresses item=address}-->
  <div class="layerbox">
    <div class="layerbox-head">
    <ul>
      <li style="width:90px">
    <!--{if $smarty.get.for_cart}-->
    <a href="index.php?app=my_address&act=set&addr_id={$address.addr_id}{if $smarty.get.for_cart}&for_cart={$smarty.get.for_cart}{/if}"><span>使用该地址</span></a>
    <!--{else}-->
      <!--{if $address.default_use eq 1}-->默认地址<!--{else}--><a href="index.php?app=my_address&act=set&addr_id={$address.addr_id}"><span>设为默认</span></a><!--{/if}-->
    <!--{/if}-->
      </li>
      <li style="width:80px"><a href="index.php?app=my_address&act=edit&addr_id={$address.addr_id}{if $smarty.get.for_cart}&for_cart={$smarty.get.for_cart}{/if}">修改</a></li>
      <li style="width:80px"><!--{if $address.default_use neq 1}--><a href="index.php?app=my_address&act=drop&addr_id={$address.addr_id}{if $smarty.get.for_cart}&for_cart={$smarty.get.for_cart}{/if}" onclick="javascript:return confirm('确定要删除此收货地址吗?');">删除</a><!--{/if}--></li>
    </ul><i></i></div>
    <div class="layerbox-text"><font>姓名：</font>{$address.consignee}&nbsp;&nbsp;<font>电话：</font>{$address.phone_mob}<br />
    <font>地址：</font><?php echo str_replace('//', ' ', $this->_var['address']['txt_countrys']); ?>&nbsp;{$address.address}
    </div>
  </div>
  <!--{/foreach}-->
  </div>  
{include file=footer.html}
</div>
</body>
</html>